const mongoose = require('mongoose')


// 创建集合模型
const ProfileSchema = new mongoose.Schema({
    date: {
        type: Date,
        default: Date
    },
    type: {
        type: String
    },
    describe: {
        type: String
    },
    input: {
        type: String,
        required: true
    },
    output: {
        type: String,
        required: true
    },
    cash: {
        type: String,
        required: true
    },
    remark: {
        type: String
    }

});

const Profile = mongoose.model('Profile', ProfileSchema);

module.exports = Profile